
/*
Copyright 2009 Peter Ekler, Akos Ludanyi, Budapest University of Technology and Economics, Department of Automation and Applied Informatics, Applied Mobile Research Group (AMORG) http://amorg.aut.bme.hu

This file is part of MobTorrent.

MobTorrent is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

MobTorrent is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with MobTorrent.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package data;

/**
 *
 * @author Tyrael
 */
public class MTPreferences
{
    // constants
    public final static int MobTorrentVersion = 11000;
    public final static String MobTorrentStringVersion = "1.1";

    public final static String MobTorrentVersionCheckURL = "http://avalon.aut.bme.hu/~tyrael/mobtorrent/getmobtorrentversion.php";
    public final static String MobTorrentDownloadMIRROR1 = "http://avalon.aut.bme.hu/~tyrael/mobtorrent/MobTorrent.jad";
    public final static String MobTorrentDownloadMIRROR2 = "http://avalon.aut.bme.hu/~tyrael/mobtorrent/downloadmobtorrent.php";

    public final static int ELanguageEn = 1;
    public final static int ELanguageHU = 2;

    public final static String MTSETTINGSRMSNAME = "MTSettingsDB";
    public final static String MTTORRENTSRMSNAME = "MTTorrentsDB";

    // functions
    public static void setLanguage(int aLanguageCode)
    {
        LanguageCode = aLanguageCode;

        switch (LanguageCode)
        {
            case ELanguageEn:
                LocalizationSupport.initLocalizationSupport();
                break;
            case ELanguageHU:
                LocalizationSupport.initLocalizationSupport("hu_HU");
                break;
            default:
                LocalizationSupport.initLocalizationSupport();
                break;
        }
    }

    // settings
    public static int LanguageCode = ELanguageEn;
    public static String DownloadFolder = "";
    public static boolean EnableAddressBooster = true;

    public static boolean EnableStats = true;
}

